<extend name="Public/base"/>
<block name="head">
	 <link rel="stylesheet" type="text/css" href="__MOBILE__/css/login.css">
</block>
<block name="body">
<div class="container user-center">
    <div class="row">
        <div class="col-sm-12">
            <include file="Public:usernav"/>
        </div>
        <div class="col-sm-12">
            <div class="tabs">
                <ul class="nav nav-tabs">
                    <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i> 用户信息</a></li>
                </ul>
                <div class="tab-content">
                    <div class="tab-pane active" id="one">
                        <form class="form-horizontal J_ajaxForm" action="{:U('User/index')}" method="post">
                            <div class="form-group">
                                <label class="control-label col-md-3" for="">昵称</label>
                                <div class="col-md-3">
                                    <input type="text"  class="form-control" id="" name="nickname" value="{$my['nickname']}">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="control-label col-md-3" for="">邮箱</label>
                                <div class="col-md-3">
                                    <input type="text" readonly class="form-control" id="" value="{$my['email']}">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="control-label col-md-3" for="">注册时间</label>
                                <div class="col-md-3">
                                    <input type="text" readonly class="form-control" id="" value="{:date('Y-m-d H-i-s',$my['regtime'])}">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="control-label col-md-3" for="">上次登录时间</label>
                                <div class="col-md-3">
                                    <input type="text" readonly class="form-control" id="" value="{:date('Y-m-d H:i:s',$my['last_login_time'])}">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="control-label col-md-3" for="">上次登录IP</label>
                                <div class="col-md-3">
                                    <input type="text" readonly class="form-control" id="" value="{$my['last_login_ip']}">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="control-label col-md-3" for="">积分</label>
                                <div class="col-md-3">
                                    <input type="text" readonly class="form-control" id="" value="{:intval($my['score'])}">
                                </div>
                            </div>
                            <div class="form-group">
                           		<div class="col-xs-3">
                                	<button class="btn btn-success" type="submit">确定</button>
                                </div>
                                <div class="col-xs-3 col-xs-offset-6">
                                	<a class="btn btn-success" href="{:U('User/logout')}" type="submit">退出</a>
                                </div>
                            </div>
                            
                        </form>
                    </div>
                </div>							
            </div>
        </div>
    </div>
</div>
</block>
<block name="script">
	<script>
	$(function(){
		 heightlight_bottom_nav("{:U('index')}"); 
	});
	
	</script>
</block>
